package com.design.observer.football;

/**
 * @author xiemiao
 * @description
 * @date 2023/08/18
 */
public class FieldPlayer implements Player {

    private String name;

    public FieldPlayer(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public void update(String msg) {
        System.out.println(name + "收到了信息" + msg);
    }
}
